﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Zebra.Umbraco.Marcos
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:NoTableLogin runat=server></{0}:NoTableLogin>")]
    public class NoTableLogin : System.Web.UI.WebControls.Login
    {
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            WebControl div = new WebControl(HtmlTextWriterTag.Div);

            LayoutTemplate.InstantiateIn(div);

            Controls.Clear();
            Controls.Add(div);

            div.CopyBaseAttributes(this);
            div.RenderControl(writer);
        }
    }
}
